🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / app / src / main / java / com / geeksville / mesh / ui / node / components / NodeChip.kt
Displaying Raw • Download
app/src/main/java/com/geeksville/mesh/ui/node/components/NodeChip.kt ui_message_list (be3f882f) Text, 4.95 KB
T8b949e/*
* Copyright (c) 2025 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787com.geeksville.mesh.ui.node.components
Tff7b72import T7ee787androidx.compose.foundation.combinedClickable
Tff7b72import T7ee787androidx.compose.foundation.interaction.MutableInteractionSource
Tff7b72import T7ee787androidx.compose.foundation.layout.Box
Tff7b72import T7ee787androidx.compose.foundation.layout.IntrinsicSize
Tff7b72import T7ee787androidx.compose.foundation.layout.defaultMinSize
Tff7b72import T7ee787androidx.compose.foundation.layout.fillMaxWidth
Tff7b72import T7ee787androidx.compose.foundation.layout.width
Tff7b72import T7ee787androidx.compose.material3.AssistChipDefaults
Tff7b72import T7ee787androidx.compose.material3.ElevatedAssistChip
Tff7b72import T7ee787androidx.compose.material3.MaterialTheme
Tff7b72import T7ee787androidx.compose.material3.Text
Tff7b72import T7ee787androidx.compose.runtime.Composable
Tff7b72import T7ee787androidx.compose.runtime.getValue
Tff7b72import T7ee787androidx.compose.runtime.mutableStateOf
Tff7b72import T7ee787androidx.compose.runtime.remember
Tff7b72import T7ee787androidx.compose.runtime.setValue
Tff7b72import T7ee787androidx.compose.ui.Modifier
Tff7b72import T7ee787androidx.compose.ui.graphics.Color
Tff7b72import T7ee787androidx.compose.ui.semantics.contentDescription
Tff7b72import T7ee787androidx.compose.ui.semantics.semantics
Tff7b72import T7ee787androidx.compose.ui.text.style.TextAlign
Tff7b72import T7ee787androidx.compose.ui.text.style.TextDecoration
Tff7b72import T7ee787androidx.compose.ui.tooling.preview.Preview
Tff7b72import T7ee787androidx.compose.ui.unit.dp
Tff7b72import T7ee787com.geeksville.mesh.MeshProtos
Tff7b72import T7ee787com.geeksville.mesh.PaxcountProtos
Tff7b72import T7ee787com.geeksville.mesh.TelemetryProtos
Tff7b72import T7ee787com.geeksville.mesh.model.Node
Tf0883e@Composable
Tff7b72fun Td2a8ffNodeChipTb4b4b4(
Te6edf3modifierTb4b4b4: Te6edf3Modifier Tff7b72= Te6edf3ModifierTb4b4b4,
Te6edf3enabledTb4b4b4: Tffa657Boolean Tff7b72= Tff7b72trueTb4b4b4,
Te6edf3nodeTb4b4b4: Te6edf3NodeTb4b4b4,
Te6edf3isThisNodeTb4b4b4: Tffa657BooleanTb4b4b4,
Te6edf3isConnectedTb4b4b4: Tffa657BooleanTb4b4b4,
Te6edf3onActionTb4b4b4: Tb4b4b4(Te6edf3NodeMenuActionTb4b4b4) Tff7b72-Tff7b72> Tffa657UnitTb4b4b4,
Tb4b4b4) Tb4b4b4{
Tff7b72val Te6edf3isIgnored Tff7b72= Te6edf3nodeTb4b4b4.Te6edf3isIgnored
Tff7b72val Tb4b4b4(Te6edf3textColorTb4b4b4, Te6edf3nodeColorTb4b4b4) Tff7b72= Te6edf3nodeTb4b4b4.Te6edf3colors
Tff7b72var Te6edf3menuExpanded Tff7b72by Te6edf3remember Tb4b4b4{ Te6edf3mutableStateOfTb4b4b4(Tff7b72falseTb4b4b4) Tb4b4b4}
Tff7b72val Te6edf3inputChipInteractionSource Tff7b72= Te6edf3remember Tb4b4b4{ Te6edf3MutableInteractionSourceTb4b4b4(Tb4b4b4) Tb4b4b4}
Te6edf3Box Tb4b4b4{
Te6edf3ElevatedAssistChipTb4b4b4(
Te6edf3modifier Tff7b72=
Te6edf3modifierTb4b4b4.Te6edf3widthTb4b4b4(Te6edf3IntrinsicSizeTb4b4b4.Te6edf3MinTb4b4b4)Tb4b4b4.Te6edf3defaultMinSizeTb4b4b4(Te6edf3minWidth Tff7b72= T79c0ff7T79c0ff2.Te6edf3dpTb4b4b4)Tb4b4b4.Te6edf3semantics Tb4b4b4{
Te6edf3contentDescription Tff7b72= Te6edf3nodeTb4b4b4.Te6edf3userTb4b4b4.Te6edf3shortNameTb4b4b4.Te6edf3ifEmpty Tb4b4b4{ Ta5d6ff"Ta5d6ffNodeTa5d6ff" Tb4b4b4}
Tb4b4b4}Tb4b4b4,
Te6edf3elevation Tff7b72= Te6edf3AssistChipDefaultsTb4b4b4.Te6edf3elevatedAssistChipElevationTb4b4b4(Tb4b4b4)Tb4b4b4,
Te6edf3colors Tff7b72=
Te6edf3AssistChipDefaultsTb4b4b4.Te6edf3elevatedAssistChipColorsTb4b4b4(
Te6edf3containerColor Tff7b72= Te6edf3ColorTb4b4b4(Te6edf3nodeColorTb4b4b4)Tb4b4b4,
Te6edf3labelColor Tff7b72= Te6edf3ColorTb4b4b4(Te6edf3textColorTb4b4b4)Tb4b4b4,
Tb4b4b4)Tb4b4b4,
Te6edf3label Tff7b72= Tb4b4b4{
Te6edf3TextTb4b4b4(
Te6edf3modifier Tff7b72= Te6edf3ModifierTb4b4b4.Te6edf3fillMaxWidthTb4b4b4(Tb4b4b4)Tb4b4b4,
Te6edf3text Tff7b72= Te6edf3nodeTb4b4b4.Te6edf3userTb4b4b4.Te6edf3shortNameTb4b4b4.Te6edf3ifEmpty Tb4b4b4{ Ta5d6ff"Ta5d6ff???Ta5d6ff" Tb4b4b4}Tb4b4b4,
Te6edf3fontSize Tff7b72= Te6edf3MaterialThemeTb4b4b4.Te6edf3typographyTb4b4b4.Te6edf3labelLargeTb4b4b4.Te6edf3fontSizeTb4b4b4,
Te6edf3textDecoration Tff7b72= Te6edf3TextDecorationTb4b4b4.Te6edf3LineThroughTb4b4b4.Te6edf3takeIf Tb4b4b4{ Te6edf3isIgnored Tb4b4b4}Tb4b4b4,
Te6edf3textAlign Tff7b72= Te6edf3TextAlignTb4b4b4.Te6edf3CenterTb4b4b4,
Te6edf3maxLines Tff7b72= T79c0ff1Tb4b4b4,
Tb4b4b4)
Tb4b4b4}Tb4b4b4,
Te6edf3onClick Tff7b72= Tb4b4b4{Tb4b4b4}Tb4b4b4,
Te6edf3interactionSource Tff7b72= Te6edf3inputChipInteractionSourceTb4b4b4,
Tb4b4b4)
Te6edf3BoxTb4b4b4(
Te6edf3modifier Tff7b72=
Te6edf3ModifierTb4b4b4.Te6edf3matchParentSizeTb4b4b4(Tb4b4b4)
Tb4b4b4.Te6edf3combinedClickableTb4b4b4(
Te6edf3enabled Tff7b72= Te6edf3enabledTb4b4b4,
Te6edf3onClick Tff7b72= Tb4b4b4{ Te6edf3onActionTb4b4b4(Te6edf3NodeMenuActionTb4b4b4.Te6edf3MoreDetailsTb4b4b4(Te6edf3nodeTb4b4b4)Tb4b4b4) Tb4b4b4}Tb4b4b4,
Te6edf3onLongClick Tff7b72= Tb4b4b4{ Te6edf3menuExpanded Tff7b72= Tff7b72true Tb4b4b4}Tb4b4b4,
Te6edf3interactionSource Tff7b72= Te6edf3inputChipInteractionSourceTb4b4b4,
Te6edf3indication Tff7b72= Tff7b72nullTb4b4b4,
Tb4b4b4)
Tb4b4b4.Te6edf3semantics Tb4b4b4{ Te6edf3contentDescription Tff7b72= Te6edf3nodeTb4b4b4.Te6edf3userTb4b4b4.Te6edf3shortNameTb4b4b4.Te6edf3ifEmpty Tb4b4b4{ Ta5d6ff"Ta5d6ffNodeTa5d6ff" Tb4b4b4} Tb4b4b4}Tb4b4b4,
Tb4b4b4)
Tb4b4b4}
Te6edf3NodeMenuTb4b4b4(
Te6edf3expanded Tff7b72= Te6edf3menuExpandedTb4b4b4,
Te6edf3node Tff7b72= Te6edf3nodeTb4b4b4,
Te6edf3showFullMenu Tff7b72= Tff7b72!Te6edf3isThisNode Tff7b72&Tff7b72& Te6edf3isConnectedTb4b4b4,
Te6edf3onDismissMenuRequest Tff7b72= Tb4b4b4{ Te6edf3menuExpanded Tff7b72= Tff7b72false Tb4b4b4}Tb4b4b4,
Te6edf3onAction Tff7b72= Tb4b4b4{
Te6edf3menuExpanded Tff7b72= Tff7b72false
Te6edf3onActionTb4b4b4(Tffa657itTb4b4b4)
Tb4b4b4}Tb4b4b4,
Tb4b4b4)
Tb4b4b4}
Tf0883e@SuppressTb4b4b4(Ta5d6ff"Ta5d6ffMagicNumberTa5d6ff"Tb4b4b4)
Tf0883e@Preview
Tf0883e@Composable
Tff7b72fun Td2a8ffNodeChipPreviewTb4b4b4(Tb4b4b4) Tb4b4b4{
Tff7b72val Te6edf3user Tff7b72= Te6edf3MeshProtosTb4b4b4.Te6edf3UserTb4b4b4.Te6edf3newBuilderTb4b4b4(Tb4b4b4)Tb4b4b4.Te6edf3setShortNameTb4b4b4(Ta5d6ff"Ta5d6ff\Ta5d6ffuD83ETa5d6ff\Ta5d6ffuDEE0Ta5d6ff"Tb4b4b4)Tb4b4b4.Te6edf3setLongNameTb4b4b4(Ta5d6ff"Ta5d6ffJohn DoeTa5d6ff"Tb4b4b4)Tb4b4b4.Te6edf3buildTb4b4b4(Tb4b4b4)
Tff7b72val Te6edf3node Tff7b72=
Te6edf3NodeTb4b4b4(
Te6edf3num Tff7b72= T79c0ff1T79c0ff3T79c0ff4T79c0ff4T79c0ff4Tb4b4b4,
Te6edf3user Tff7b72= Te6edf3userTb4b4b4,
Te6edf3isIgnored Tff7b72= Tff7b72falseTb4b4b4,
Te6edf3paxcounter Tff7b72= Te6edf3PaxcountProtosTb4b4b4.Te6edf3PaxcountTb4b4b4.Te6edf3newBuilderTb4b4b4(Tb4b4b4)Tb4b4b4.Te6edf3setBleTb4b4b4(T79c0ff1T79c0ff0Tb4b4b4)Tb4b4b4.Te6edf3setWifiTb4b4b4(T79c0ff5Tb4b4b4)Tb4b4b4.Te6edf3buildTb4b4b4(Tb4b4b4)Tb4b4b4,
Te6edf3environmentMetrics Tff7b72=
Te6edf3TelemetryProtosTb4b4b4.Te6edf3EnvironmentMetricsTb4b4b4.Te6edf3newBuilderTb4b4b4(Tb4b4b4)Tb4b4b4.Te6edf3setTemperatureTb4b4b4(T79c0ff2T79c0ff5fTb4b4b4)Tb4b4b4.Te6edf3setRelativeHumidityTb4b4b4(T79c0ff6T79c0ff0fTb4b4b4)Tb4b4b4.Te6edf3buildTb4b4b4(Tb4b4b4)Tb4b4b4,
Tb4b4b4)
Te6edf3NodeChipTb4b4b4(Te6edf3node Tff7b72= Te6edf3nodeTb4b4b4, Te6edf3isThisNode Tff7b72= Tff7b72falseTb4b4b4, Te6edf3isConnected Tff7b72= Tff7b72trueTb4b4b4, Te6edf3onAction Tff7b72= Tb4b4b4{Tb4b4b4}Tb4b4b4)
Tb4b4b4}
Served by rngit 1.5.2 - Generated in 0.08s